package com.bjx.flow.mmx.domain.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Range;
import com.bjx.common.core.domain.group.Update;
import java.util.Date;

/**
 * @desc: 流程实例BO实体
 * @author: liushuai
 * @date: 2023/05/22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "MmxFlowInstanceBO",description = "流程实例BO实体")
public class MmxFlowInstanceBO  {
        /**
        * 实例Id
        */
        @NotNull(message = "实例Id不能为空",groups = Update.class)
        @Schema(title = "instanceId",description = "实例Id")
        private  Long instanceId; 
        /**
        * 实例名称
        */
        @NotNull(message = "实例名称不能为空")
        @Size(max = 255,message = "实例名称长度为1到255个字符")
        @Schema(title = "instanceName",description = "实例名称")
        private  String instanceName; 
        /**
        * 定义Id
        */
        @NotNull(message = "定义Id不能为空")
        @Schema(title = "definitionId",description = "定义Id")
        private  Long definitionId; 
        /**
        * 定义key
        */
        @NotNull(message = "定义key不能为空")
        @Size(max = 64,message = "定义key长度为1到64个字符")
        @Schema(title = "definitionKey",description = "定义key")
        private  String definitionKey; 
        /**
        * 业务Id
        */
        @NotNull(message = "业务Id不能为空")
        @Size(max = 64,message = "业务Id长度为1到64个字符")
        @Schema(title = "businessId",description = "业务Id")
        private  String businessId; 
        /**
        * 创建时间
        */
        @NotNull(message = "创建时间不能为空")
        @Schema(title = "createTime",description = "创建时间")
        private  Date createTime; 
        /**
        * 创建用户
        */
        @Size(max = 64,message = "创建用户长度为1到64个字符")
        @Schema(title = "createUser",description = "创建用户")
        private  String createUser; 
        /**
        * 扩展字段1
        */
        @Size(max = 255,message = "扩展字段1长度为1到255个字符")
        @Schema(title = "ext1",description = "扩展字段1")
        private  String ext1; 
        /**
        * 扩展字段2
        */
        @Size(max = 255,message = "扩展字段2长度为1到255个字符")
        @Schema(title = "ext2",description = "扩展字段2")
        private  String ext2; 
        /**
        * 扩展字段3
        */
        @Size(max = 255,message = "扩展字段3长度为1到255个字符")
        @Schema(title = "ext3",description = "扩展字段3")
        private  String ext3; 
}